<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>在公司中90%的代码jQuery</title>
	</head>
	<body>
		
		<div id="div007">
			<span>
				张无忌22
			</span>
		</div>
		
		
    
	    <!-- 引入jquery-->
	    <script type="text/javascript" src="../../js/jquery-1.7.2.js" ></script>
	    <script>
	    	/*window.onload=function(){
	    		var v = document.getElementById('div007').innerText;
	    		console.log(v);
	    	}*/
	    	
	    	
	    	var div007= $('#div007');
	    	
	    	//var val= div007.innerText;
	    	var txt = div007.text();
	    	console.log(txt);
	    	
	    	var html =div007.html();
	    	console.log(html);
	    </script>
	</body>
</html>
